const mongoose = require('mongoose');

const account = new mongoose.Schema({
    deviceName: { type: String, required: true, unique: true },
    deviceId: { type: String, unique: true, sparse: true },
    accountStatus: { type: String, default: "正常" },
    work:{ type: String, default: "无" },
});


module.exports = mongoose.model('Device', account);
